package com.sew.sewweb.service.impl;

import com.sew.sewweb.common.utils.PageUtils;
import com.sew.sewweb.common.utils.Query;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;


import com.sew.sewweb.mapper.OrgPrincipalMapper;
import com.sew.sewweb.bean.OrgPrincipalEntity;
import com.sew.sewweb.service.OrgPrincipalService;


@Service("orgPrincipalService")
public class OrgPrincipalServiceImpl extends ServiceImpl<OrgPrincipalMapper, OrgPrincipalEntity> implements OrgPrincipalService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<OrgPrincipalEntity> page = this.page(
                new Query<OrgPrincipalEntity>().getPage(params),
                new QueryWrapper<OrgPrincipalEntity>()
        );

        return new PageUtils(page);
    }

}